<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}">
	<head>
		<title>{% block title %}{% endblock %}</title>
		<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ MEDIA_URL }}blocks/css/reset.css" />
		{% block extrastyle %}{% endblock %}
		<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ MEDIA_URL }}blocks/css/grid.css" />
		<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ MEDIA_URL }}blocks/css/typography.css" />
		<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ MEDIA_URL }}blocks/css/admin.css" />
		<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ MEDIA_URL }}blocks/css/forms.css" />
		<!--[if IE]><link rel="stylesheet" type="text/css" media="screen, projection" href="{{ MEDIA_URL }}blocks/css/ie.css" /><![endif]-->
		<link rel="stylesheet" type="text/css" media="print" href="{{ MEDIA_URL }}blocks/css/print.css" />
		<!--[if gte IE 5.5]><![if lt IE 7]>
		<script type="text/javascript" src="{{ MEDIA_URL }}blocks/js/iepngfix.js"></script>
		<style type="text/css">
			.iepngfix, img { behavior: expression(IEPNGFIX.fix(this)); }
		</style>
		<![endif]><![endif]-->
		
		{% block extrahead %}{% endblock %}
		{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
	</head>	
{% load i18n %}

<body {% ifequal BLOCKS_URL '/admin/' %}class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"{% endifequal %}>

		<div id="container">

			{% if not is_popup %}
			<div id="header" class="span-4 last">
				
				<img id="sitelogo" src="{{ MEDIA_URL }}blocks/img/logo.png" width="350" height="60" />
				{% block nav-global %}{% endblock %}
			</div>
			{% block breadcrumbs %}<div class="span-4 last breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title|escape }}{% endif %}</div>{% endblock %}
			{% endif %}
			
			<div id="content" class="span-4 last">				
				{% if not is_popup %}
				<div id="sidebar" class="span-1">
					{% if user.is_authenticated and user.is_staff %}
					<div id="menu" class="module">
						<h2>{% trans 'Account' %}</h2>
						<p>{% trans 'User' %}: <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong></p>
						<ul>
							<li><a href="/admin/doc/">{% trans 'Documentation' %}</a></li>
							<li><a href="/admin/password_change/">{% trans 'Change password' %}</a></li>
							<li><a href="/admin/logout/">{% trans 'Log out' %}</a></li>
						</ul>
					</div>
					
						{% if BLOCKS_SETTINGS.FILEBROWSER_ENABLED %}
					<div class="module">
						<h2>{% trans 'Tools' %}</h2>
						<ul>
							<li><a href="{{ BLOCKS_SETTINGS.FILEBROWSER_URL_ADMIN }}">{% trans 'File Browser' %}</a></li>
						</ul>
					</div>
						{% endif %}
					{% endif %}
										
					{% block sidebar %}{% endblock %}
					
					{% block filters %}{% endblock %}
					
				</div>
				{% endif %}
				
				<div id="contents" class="{% if not is_popup %}span-3{% else %}span-4{% endif %} module last">
					{% block pretitle %}{% endblock %}
					{% block content_title %}{% if title %}<h1>{{ title|escape }}</h1>{% endif %}{% endblock %}
					
					{% if messages %}
					<div id="messagelist">
						<ul>{% for message in messages %}<li>{{ message|escape }}</li>{% endfor %}</ul>
					</div>
					{% endif %}
					
					{% block content %}
					{{ content }}
					{% endblock %}
				</div>
				
				<div class="span-4 last" />
				
				{% block footer %}<div id="contentfooter"></div>{% endblock %}
			</div>
			
			<div id="footer" class="span-4 last">
				<div id="copy">
					<p class="credits">
						Design by <a title="Designer" href="mailto:kimus.linuxus@gmail.com">kimus.linuxus</a> |
						Powered by <a title="django blocks" href="http://code.google.com/p/django-blocks/">Django Blocks</a> |
						<a title="Validate XHTML code" href="http://validator.w3.org/check?uri=referer">W3C XHTML 1.0</a> |
						<a title="Validate CSS code" href="http://jigsaw.w3.org/css-validator/">W3C CSS 2.0</a>
					</p>
				</div>
			</div>
		</div>

</body>
</html>
